home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
alpha.arc
/
ECCMD.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-02-16
|
755b
|
30 lines
#include "global.h"
#include "mbuf.h"
#include "iface.h"
#include "ec.h"
int
doetherstat(argc,argv)
int argc;
char *argv[];
{
register struct ec *ecp;
char buf[20];
for(ecp = ec;ecp < &ec[nec]; ecp++){
pether(buf,ecp->iface->hwaddr);
printf("Controller %u, Ethernet address %s\n",ecp-ec,buf);
printf("recv bad overf drop nomem intrpt\n");
printf("%-10lu%-10lu%-10lu%-10lu%-10lu%-10lu\n",
ecp->estats.recv,ecp->estats.bad,ecp->estats.over,
ecp->estats.drop,ecp->estats.nomem,ecp->estats.intrpt);
printf("xmit timeout jam jam16\n");
printf("%-10lu%-10lu%-10lu%-10lu\n",
ecp->estats.xmit,ecp->estats.timeout,ecp->estats.jam,
ecp->estats.jam16);
}
return 0;
}